package day03;

import java.util.Arrays;

public class ParamTest {
    public static void main(String[] args) {
        int[] arr1 = {1,2,3};

        int[] arr2 = {100,200,300};

        change(arr1,arr2);

        System.out.println("main-" + Arrays.toString(arr1));
        System.out.println("main-" + Arrays.toString(arr2));
    }

    private static void change(int[] arr1,int[] arr2){
        arr1 = arr2;
        arr2[0] = 900;
        System.out.println("c-"+Arrays.toString(arr1));
        System.out.println("c-"+Arrays.toString(arr2));
    }
}
